﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Configuration;

using ClientLib;

namespace JigsawAdmin
{
    public partial class AdminHelp : Form
    {
        ClientUtil _cutil;

        public AdminHelp(ClientUtil cUtil)
        {
            InitializeComponent();

            _cutil = cUtil;

            // get base service URL (strip off web service)
            string tmpURL = _cutil.ServiceURL;
            int lastslash = tmpURL.LastIndexOf("/");
            string helpURL = tmpURL.Substring(0, lastslash + 1);

            // add path to help index to base url, then navigate help browser
            helpURL += ConfigurationManager.AppSettings["HELPINDEX"].ToString();
            webAdminHelp.Navigate(helpURL);
        }
    }
}
